package com.nd.test.repository;

import java.util.List;
import java.util.Date;

import model.po.CouponsModel;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.web.bind.annotation.*;

/**   
 * Create by apisdk 
 */
public interface CouponsModelRepository extends MongoRepository<CouponsModel,String> ,QueryByExampleExecutor<CouponsModel>{

	/**
	 * query CouponsModel List by field: id
	 */
    List<CouponsModel> findById(java.lang.String id);
	/**
	 * query CouponsModel List by field: name
	 */
    List<CouponsModel> findByName(java.lang.String name);
	/**
	 * query CouponsModel List by field: discount
	 */
    List<CouponsModel> findByDiscount(java.lang.String discount);
	/**
	 * query CouponsModel List by field: starPrice
	 */
    List<CouponsModel> findByStarPrice(java.lang.String starPrice);
	/**
	 * query CouponsModel List by field: startTime
	 */
    List<CouponsModel> findByStartTime(long startTime);
	/**
	 * query CouponsModel List by field: endTime
	 */
    List<CouponsModel> findByEndTime(long endTime);
	/**
	 * query CouponsModel List by field: sendingType
	 */
    List<CouponsModel> findBySendingType(java.lang.String sendingType);
	/**
	 * query CouponsModel List by field: sendingCondition
	 */
    List<CouponsModel> findBySendingCondition(java.lang.String sendingCondition);
	/**
	 * query CouponsModel List by field: total
	 */
    List<CouponsModel> findByTotal(java.lang.String total);
	/**
	 * query CouponsModel List by field: category
	 */
    List<CouponsModel> findByCategory(java.lang.String category);
	/**
	 * query CouponsModel List by field: creator
	 */
    List<CouponsModel> findByCreator(java.lang.String creator);
	/**
	 * query CouponsModel List by field: createTime
	 */
    List<CouponsModel> findByCreateTime(long createTime);
	/**
	 * query CouponsModel List by field: audited
	 */
    List<CouponsModel> findByAudited(boolean audited);
	/**
	 * query CouponsModel List by field: auditor
	 */
    List<CouponsModel> findByAuditor(java.lang.String auditor);
}
